package com.rfq.controller.customer;

import java.util.List;

import com.rfqx.entity.Customer;

import br.com.caelum.vraptor.Resource;
import br.com.caelum.vraptor.Result;
/**
 * /<contexto>/customers 
 * @author Bisso
 *
 */
@Resource
public class CustomersController {
	
	private Result result;
	
	public CustomersController(Result result) {
		this.result = result;
	}
	
	/**
	 * /<contexto>/customers/olhaai
	 * WEB-INF/jsp/customers/olhaai.jsp
	 */
	public void olhaai() {	
		System.out.println("");
	}
	
	public void form() {
	}

	public void add(Customer customer) {
		System.out.println(customer);
		customer.setId(342423L);
		result.include("customer",customer);
		result.redirectTo("/customers/view");
	}

	public void view () {
	}
	
	public Customer show(Long id) {
		return null;
	}
	
	public List<Customer> list() {
		return null;
	}
	
	
}
